//
//  YSAccountCenterContainerFooterView.m
//  Yueshi
//
//  Created by Northwan on 15/8/12.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSAccountCenterContainerFooterView.h"

@implementation YSAccountCenterContainerFooterView

-(instancetype)initWithType:(AccountCenterProductType)type{
    self = [super init];
    if(self){
        if(type == experienceProductType){
            self.phoneView = [YSAccountCenterInputPhoneView phoneView];
            [self.phoneView setX:0];
            [self.phoneView setY:0];
            [self.phoneView setWidth:SCREENW];
            [self addSubview:self.phoneView];
            
            self.payView = [YSAccountCenterFooterView footerView];
            [self.payView setX:0];
            [self.payView setY:CGRectGetMaxY(self.phoneView.frame)];
            [self.payView setWidth:SCREENW];
            [self addSubview:self.payView];
        }else{
            self.payView = [YSAccountCenterFooterView footerView];
            [self.payView setX:0];
            [self.payView setY:0];
            [self.payView setWidth:SCREENW];
            [self addSubview:self.payView];
        }
        [self setFrame:CGRectMake(0, 0, SCREENW, CGRectGetMaxY(self.payView.frame))];
    }
    return self;
}



@end
